package com.gla.dao;

import com.gla.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface UserMapper {

    //修改个人信息
    int updatePrimaryKey(@Param("user") User record);
    //根据id查询
    User selectByPrimaryKey(Integer id);
    //只修改用户名的接口
    @Update("UPDATE USER SET name=#{user.name} WHERE id=#{user.id}")
    int updateName(@Param("user") User record);
}
